<div class="list <?= $this->condensed ? 'list-condensed' : '' ?>">
  <header>
    <div class="pull-right">
      <div class="btn-group" data-toggle="buttons-radio">
        <button type="button" data-showtype="default" class="btn btn-default active"><i class="icon-th-list"></i></button>
        <button type="button" data-showtype="9grid" class="btn btn-default"><i class="icon-th"></i></button>
        <button type="button" data-showtype="4grid" class="btn btn-default"><i class="icon-th-large"></i></button>
      </div>
    </div>
    <h3><i class="icon-list-ul icon-border-circle"></i> Contents List &nbsp;<small>26 articles</small></h3>
  </header>
  <section class="items items-hover">
  <?php foreach ($this->dataList as $key => $data): ?>
    <div class="item">
      <div class="item-heading">
      <?php if ($this->isLogin): ?>
        <div class="pull-right">
        <a href="<?= $this->links['edit'] ? $this->getView()->url($this->links['edit'], 'id='.  $data['id'])  : '#'; ?>"><i class="icon-pencil"></i> edit</a> &nbsp;
        <a href="<?= $this->links['del'] ? $this->getView()->url($this->links['del'] ,'id='. $data['id']) : '#'; ?>"><i class="icon-remove"></i> delete</a>
        </div>
      <?php endif ?>
        <h4><span class="label label-success">NEW</span>&nbsp; <a href="id=<?= $data['id'] ?>"><?= $data['title'] ?></a></h4>
      </div>
    <?php if ($this->showThumb): ?>
      <div class="item-content">
        <div class="media pull-left">
          <div class="media-place-holder" style="width:200px;height:100px;line-height:100px">200x100</div>
        </div>
        <div class="text">
          Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, necessitatibus, animi magni illo vel ducimus quia dolorum modi temporibus iste fugit laudantium minima minus sit debitis. Autem voluptate dolorum saepe!
        </div>
      </div>
    <?php else: ?>
      <div class="item-content">
          <?= $data['content'] ?>
      </div>
    <?php endif ?>
      <div class="item-footer">
        <a href="#" class="text-muted"><i class="icon-comments"></i> 243</a>&nbsp;
        <span class="text-muted">2013-11-11 16:14:37</span>
      </div>
    </div>
  <?php endforeach ?>
  <?php if (empty($this->dataList)): ?>
    <div class="items items-hover">
      <strong>No content yet!!</strong>
    </div>
  <?php endif ?>

  </section>
  <footer>
    <ul class="pager">
      <li class="previous"><a href="#">« 上一页</a></li>
      <li><a href="#">1</a></li>
      <li><a href="#">⋯</a></li>
      <li><a href="#">6</a></li>
      <li class="active"><a href="#">7</a></li>
      <li><a href="#">8</a></li>
      <li><a href="#">9</a></li>
      <li><a href="#">⋯</a></li>
      <li><a href="#">12</a></li>
      <li class="next"><a href="#">下一页 »</a></li>
    </ul>
  </footer>
</div>